var http = require('http')
var deleteData = require('./deletedatacredit')
var url = require('url')
var port = 8989

var server = http.createServer((request, response) => {
    var arg = url.parse(request.url,true).query
    console.log(request.method)
    console.log(arg)
    deleteData()
    response.writeHead(200,{
        'content-type':'application/json'
    })
    response.write('ok')
    response.end('cccc')
}).listen(port) ;


